//
//  UITextField+Category.h
//  OralRobot
//
//  Created by 王桂敏 on 16/5/5.
//  Copyright © 2016年 wangguimin. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <objc/runtime.h>


/**
 *  控件的状态
 */
typedef NS_ENUM(NSInteger, StateOfControl) {
    /**
     *  无效
     */
    Unavailable,
    /**
     *  有效
     */
    Available
};

@interface UITextField (Category)


+ (WGMTextField *)textFieldWithFrame:(CGRect)frame
                              image:(NSString *)imageName
                        placeholder:(NSString *)placeholder
                       keyboardType:(UIKeyboardType)keyboardType
                    clearButtonMode:(UITextFieldViewMode)clearButtonMode
                           delegate:(id<UITextFieldDelegate>)delegate;

+ (BOOL)phoneWithBlank:(UITextField *)textField
                 range:(NSRange)range
     replacementString:(NSString *)string;

@end
